package com.punai.dataclean.constants;

import com.punai.common.bos.KVBO;

import java.util.ArrayList;
import java.util.List;

public class IncomeDataConstanta {

    public enum Tabs{
        FB_0("fb_0","分部分项清单"),
        DJ_1("dj_1","单价措施清单"),
        ZJ_2("zj_2","总价措施清单");

        private String code;

        private String name;

        Tabs(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public static List<KVBO> getAllTab(){
            return new ArrayList<KVBO>(){{
                for (Tabs value : Tabs.values()) {
                    add(new KVBO(value.getCode(),value.getName()));
                }
            }};
        }

    }
}
